package com.weds.edpf.core.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weds.core.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;

public class DevModuleEntity extends BaseEntity implements Serializable {
    /**
     *
     */
    @ApiModelProperty(required = true, dataType = "int", example = "-1", value = "")
    private Integer xh;

    /**
     *
     */
    @Size(max = 7)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String devSerial;

    /**
     *
     */
    @Size(max = 4)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String moduleId;

    /**
     *
     */
    @ApiModelProperty(required = true, dataType = "int", example = "-1", value = "")
    private Integer ttXh;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(required = true, dataType = "string", example = "2020-06-12 17:59:14", value = "")
    private Date sj;

    /**
     *
     */
    @Size(max = 50)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String glyNo;

    /**
     */
    private static final long serialVersionUID = 1L;

    private String keys;

    /**
     * This method returns the value of the database column st_dev_module.xh
     *
     * @return the value of st_dev_module.xh
     */
    public Integer getXh() {
        return xh;
    }

    /**
     */
    public DevModuleEntity withXh(Integer xh) {
        this.setXh(xh);
        return this;
    }

    /**
     * This method sets the value of the database column st_dev_module.xh
     *
     * @param xh the value for st_dev_module.xh
     */
    public void setXh(Integer xh) {
        this.xh = xh;
    }

    /**
     * This method returns the value of the database column st_dev_module.dev_serial
     *
     * @return the value of st_dev_module.dev_serial
     */
    public String getDevSerial() {
        return devSerial;
    }

    /**
     */
    public DevModuleEntity withDevSerial(String devSerial) {
        this.setDevSerial(devSerial);
        return this;
    }

    /**
     * This method sets the value of the database column st_dev_module.dev_serial
     *
     * @param devSerial the value for st_dev_module.dev_serial
     */
    public void setDevSerial(String devSerial) {
        this.devSerial = devSerial;
    }

    /**
     * This method returns the value of the database column st_dev_module.module_id
     *
     * @return the value of st_dev_module.module_id
     */
    public String getModuleId() {
        return moduleId;
    }

    /**
     */
    public DevModuleEntity withModuleId(String moduleId) {
        this.setModuleId(moduleId);
        return this;
    }

    /**
     * This method sets the value of the database column st_dev_module.module_id
     *
     * @param moduleId the value for st_dev_module.module_id
     */
    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    /**
     * This method returns the value of the database column st_dev_module.tt_xh
     *
     * @return the value of st_dev_module.tt_xh
     */
    public Integer getTtXh() {
        return ttXh;
    }

    /**
     */
    public DevModuleEntity withTtXh(Integer ttXh) {
        this.setTtXh(ttXh);
        return this;
    }

    /**
     * This method sets the value of the database column st_dev_module.tt_xh
     *
     * @param ttXh the value for st_dev_module.tt_xh
     */
    public void setTtXh(Integer ttXh) {
        this.ttXh = ttXh;
    }

    /**
     * This method returns the value of the database column st_dev_module.sj
     *
     * @return the value of st_dev_module.sj
     */
    public Date getSj() {
        return sj;
    }

    /**
     */
    public DevModuleEntity withSj(Date sj) {
        this.setSj(sj);
        return this;
    }

    /**
     * This method sets the value of the database column st_dev_module.sj
     *
     * @param sj the value for st_dev_module.sj
     */
    public void setSj(Date sj) {
        this.sj = sj;
    }

    /**
     * This method returns the value of the database column st_dev_module.gly_no
     *
     * @return the value of st_dev_module.gly_no
     */
    public String getGlyNo() {
        return glyNo;
    }

    /**
     */
    public DevModuleEntity withGlyNo(String glyNo) {
        this.setGlyNo(glyNo);
        return this;
    }

    /**
     * This method sets the value of the database column st_dev_module.gly_no
     *
     * @param glyNo the value for st_dev_module.gly_no
     */
    public void setGlyNo(String glyNo) {
        this.glyNo = glyNo;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String keys) {
        this.keys = keys;
    }
}